package com.AuthServer.pojo.form;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class EmailForm {
    @NotNull(message = "工号不能为null")
    @NotEmpty(message = "工号不能为空")
    @Size(min = 10, max = 10, message = "不是有效工号")
    private String userId;
    @NotNull(message = "邮箱不能为null")
    @NotEmpty(message = "邮箱不能为空")
    @Email(message = "不是有效的邮箱")
    private String email;
    @NotNull(message = "验证码不能为null")
    @NotEmpty(message = "验证码不能为空")
    @Size(min = 6, max = 6, message = "验证码为6位有效字符")
    private String emailCaptcha;
    private String verifyInfoToken;
}
